package com.hgw.Demo02CommandPattern.Exercises17_10_4;

/**
 * Data time:2021/12/16 20:35
 * StudentID:2019112118
 * Author:hgw
 * Description: 请求发送者
 */
public class CalculatorForm {
    private CommandQueue commandQueue;

    public CalculatorForm(CommandQueue commandQueue) {
        this.commandQueue = commandQueue;
    }

    public void setCommandQueue(CommandQueue commandQueue) {
        this.commandQueue = commandQueue;
    }

    public void call(int value) {
        commandQueue.execute(value);
    }
}
